package com.darren.euc.util;

/**
 * Created by yanglisheng on 18/3/12.
 */
/**
 * 会员驻场状态
 */
public  enum EmployStatusEnum{
    ALREAY_IN(1,"已入驻"),
    PREPARE(2,"已签约"),
    LEAVE(3,"已离场");

    private Integer employStatus;
    private String employStatusDesc;

    EmployStatusEnum(Integer employStatus, String employStatusDesc) {
        this.employStatus = employStatus;
        this.employStatusDesc = employStatusDesc;
    }

    public static String getDescByKey(Integer key){
        for(EmployStatusEnum e:EmployStatusEnum.values()){
            if(e.getEmployStatus().equals(key)){
                return e.getEmployStatusDesc();
            }
        }
        return "未入驻";
    }

    public Integer getEmployStatus() {
        return employStatus;
    }

    public void setEmployStatus(Integer employStatus) {
        this.employStatus = employStatus;
    }

    public String getEmployStatusDesc() {
        return employStatusDesc;
    }

    public void setEmployStatusDesc(String employStatusDesc) {
        this.employStatusDesc = employStatusDesc;
    }
}